package com.offcn.service;

import com.offcn.dao.BookDao;
import com.offcn.entity.Book;

import java.sql.SQLException;
import java.util.List;

public class BookService {
    public List<Book> queryAllBooks() throws SQLException {
        BookDao dao = new BookDao();
        List<Book> list = dao.queryAllBooks();
        return list;
    }
}
